package day02;
//作业
public class practice {
    public static void main(String[] args) {
        /*
        1.声明一个变量，一次声明多个变量
        2.声明变量直接初始化，先声明变量，而后再给变量初始化
        3.声明整型变量g。声明另一个整型变量h并赋值为g+10，输出变量h的值
        4.在g本身基础之上增10，输出变量g的值
        5.声明一些正确的和错误的变量名
         */
        int a;
        int a1,a2,a3;
        int b = 10;
        int c;
        c = 50;
        int g = 1;
        int h = g+10;
        System.out.println(h);
        g = g + 10;
        System.out.println(g);
        double d = 5;
        //int e = d;//大变小要强制转换
        int e = (int)d;
        System.out.println("----------------------------------");
        double _1;
        double _2,_3,_4,_5,_6;
        double _7 = 8;
        double _8;
        _8 = 12;
        double g1 = 4;
        double h1 = g1 + 10;
        System.out.println(h1);
        g1 = g1 + 10;
        System.out.println(g1);
        int z = 55;
        double x = z;
        char z1 = '1';//字符 1
        System.out.println(z1);
        char z2 = 97;//97对应的码 a
        System.out.println(z2);
        //char z3 = '10';//只能装1个
        //long z4 = 10000000000;//100亿超出int范围
        long z5 = 10000000000L;
    }
}
